package com.chen.fegin;

import com.chen.config.auth.OAuth2FeignConfig;
import com.chen.dto.UserBankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: chen
 * @Date: 2021/5/13 4:39 PM
 * @Version 1.0
 */
@FeignClient(value = "member-server",
        contextId = "bank",
        configuration = OAuth2FeignConfig.class,
        path = "/userBanks")
public interface UserBankFegin {


    @GetMapping("/getUserBank")
    UserBankDto getUserBank(@RequestParam("ids") List<Long> ids);

}
